<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=zych_home%></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=zych_keywords%>" />
<meta name="description" content="<%=zych_description%>" />
<link type="text/css" href="<%=zych_templatedir%>css/style.css" rel="stylesheet" ></link>
<script type="text/javascript" src="<%=dir%>js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<%=zych_templatedir%>js/menu.js"></script>
<script type="text/javascript" src="<%=zych_templatedir%>js/superslide.2.1.js"></script>
</head>
<body>
<!--#include file="top.asp"-->
<div id="main">
<div class="in_about">
<div class="in_title"><p><b>关于我们</b> ABOUT US</p><a href="<%=Abouturl%>" target="_blank" class="more">更多>></a></div>
<div class="ad"><script src=/js/zychad1.js></script></div>
<div class="int">
<%sql="select * from zych_type where sorttype=1 and sortid="&inaboutid&""
  set rsc=conn.execute(sql)
  if rsc.eof and rsc.bof then
      response.Write("此分类暂无信息")
  else
	  Response.Write(stvalue(DelHtml(rsc("SortContent")),260))
	  Response.Write("<a href='"&zych_listPath(rsc("SortType"),rsc("SortID"),rsc("SortURL"))&"'  target=""_blank"">[详情]</a>")
  end if
  rsc.close %>
</div></div>

<div class="in_viodeo"><div class="in_title"><p><b>视频展示</b> VIDEO</p><a href="<%=Dir%>video" target="_blank" class="more">更多>></a></div>
<div class="vid">
<%if getExtn(zych_video_sz)="flv" then
	response.Write "<div class=""flv"">"%>
	<script type="text/javascript">
	var swf_width=280
	var swf_height=195
	texts='视频展示'
	var files='<%=zych_video_sz%>'
	var config='0:自动播放|1:连续播放|100:默认音量|0:控制栏位置|2:控制栏显示|0x000033:主体颜色|60:主体透明度|0x66ff00:光晕颜色|0xffffff:图标颜色|0xffffff:文字颜色|www.zychr.com:标题:logo地址|:结束swf地址'
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
	document.write('<param name="movie" value="<%=dir%>js/vcastr2.swf"><param name="quality" value="high">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="vcastr_file='+files+'&vcastr_title='+texts+'&vcastr_config='+config+'">');
	document.write('<embed src="<%=dir%>js/vcastr2.swf" wmode="opaque" FlashVars="vcastr_file='+files+'&vcastr_title='+texts+'&vcastr_config='+config+'" menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); 
	</SCRIPT>
	<%else
	response.Write "<div class=""swf"">"
	response.Write"<embed src="""&zych_video_sz&""" allowFullScreen=""true"" quality=""high"" width=""250"" height=""200"" align=""middle"" allowScriptAccess=""always"" type=""application/x-shockwave-flash""></embed>"
	end if
   response.Write "</div>"
%></div>
</div>
</div>
<!-- 代码 开始 -->
<div id="playBox">
<div class="in_title"><p><b>主营业务</b> Management & Services</p> <div class="smalltitle">
<div class="pre"></div>
<div class="next"></div>
  <ul>
  <%pin=4
  for n=1 to pin
  if n=1 then de="class=""no""" else de=""
  Response.Write("<li "&de&"></li>")
  next%>      
  </ul>
</div></div>
<div class="pnav">

</div>
<ul class="oUlplay">
<%set rs=server.createobject("adodb.recordset") 
exec="select top "&pin*4&" * from Content where isok=1 and TopSortID="&inporid&" order by IsTop desc,px_id desc,Cid desc" 'top 8代表每栏目显示5条新闻 and SortType=3 
rs.open exec,conn,1,1 
if rs.eof and rs.bof then
response.Write("此分类暂无信息")
end if
Response.Write("<li>")
while not rs.eof
if rs("img")<>"" then img=rs("img") else img="../Include/images/nologo.jpg"
i=i+1
str=str&"<div class=""box""><a href="""&zych_show_url(rs("SortID"),rs("Cid"))&"""><img src="""&img&""" alt="""&rs("title")&""" /></a><p><a href="""&zych_show_url(rs("SortID"),rs("Cid"))&""">"&stvalue(rs("title"),20)&"</a></p></div>"
if i mod pin=0 then
str=str&"</li><li>"
end if 
rs.movenext
wend
str=str&"</li>"
if right(str,9)="<li></li>" then
str=left(str,len(str)-9)
end if
Response.Write(str)
rs.close
set rs=nothing%>
</ul>
</div>
<script>
/*======产品与服务=========*/
function getStyle(obj,name)
{
	if(obj.currentStyle)
	{
		return obj.currentStyle[name]
	}
	else
	{
		return getComputedStyle(obj,false)[name]
	}
}

function getByClass(oParent,nClass)
{
	var eLe = oParent.getElementsByTagName('*');
	var aRrent  = [];
	for(var i=0; i<eLe.length; i++)
	{
		if(eLe[i].className == nClass)
		{
			aRrent.push(eLe[i]);
		}
	}
	return aRrent;
}

function startMove(obj,att,add)
{
	clearInterval(obj.timer)
	obj.timer = setInterval(function(){
	   var cutt = 0 ;
	   if(att=='opacity')
	   {
		   cutt = Math.round(parseFloat(getStyle(obj,att)));
	   }
	   else
	   {
		   cutt = Math.round(parseInt(getStyle(obj,att)));
	   }
	   var speed = (add-cutt)/4;
	   speed = speed>0?Math.ceil(speed):Math.floor(speed);
	   if(cutt==add)
	   {
		   clearInterval(obj.timer)
	   }
	   else
	   {
		   if(att=='opacity')
		   {
			   obj.style.opacity = (cutt+speed)/100;
			   obj.style.filter = 'alpha(opacity:'+(cutt+speed)+')';
		   }
		   else
		   {
			   obj.style[att] = cutt+speed+'px';
		   }
	   }
	   
	},30)
}

/*工*/
 window.onload=function()
  {
	  var oDiv = document.getElementById('playBox');
	  var oPre = getByClass(oDiv,'pre')[0];
	  var oNext = getByClass(oDiv,'next')[0];
	  var oUlBig = getByClass(oDiv,'oUlplay')[0];
	  var aBigLi = oUlBig.getElementsByTagName('li');
	  var oDivSmall = getByClass(oDiv,'smalltitle')[0]
	  var aLiSmall = oDivSmall.getElementsByTagName('li');
	  function tab()
	  {
	     for(var i=0; i<aLiSmall.length; i++)
	     {
		    aLiSmall[i].className = '';
	     }
	     aLiSmall[now].className = 'no'
	     startMove(oUlBig,'left',-(now*aBigLi[0].offsetWidth))
	  }
	  var now = 0;
	  for(var i=0; i<aLiSmall.length; i++)
	  {
		  aLiSmall[i].index = i;
		  aLiSmall[i].onclick = function()
		  {
			  now = this.index;
			  tab();
			  
		  }
	 }
	  oPre.onclick = function()
	  {
		  now--
		  if(now ==-1)
		  {
			  now = aBigLi.length;
		  }
		   tab();
	  }
	   oNext.onclick = function()
	  {
		   now++
		  if(now ==aBigLi.length)
		  {
			  now = 0;
		  }
		  tab();
	  }
	  var timer = setInterval(oNext.onclick,3000) //滚动间隔时间设置
	  oDiv.onmouseover = function()
	  {
		  clearInterval(timer)
	  }
	   oDiv.onmouseout = function()
	  {
		  timer = setInterval(oNext.onclick,3000) //滚动间隔时间设置
	  }
	  
  }
</script>
<!-- 代码 结束 -->
<div id="main">
<div class="in_case">
<div class="in_title"><p><b>案例展示</b> CASE</p><a href="<%=zych_listpath(sorttype,incase,"")%>" target="_blank" class="more">更多>></a></div>
<div class="in_al">
	<div class="in_al_desc">
		<ul class="in_al_nav">
<%Set tys= Server.CreateObject("ADODB.Recordset")
menu="select * from [zych_Type] where isok=1 and ParentID<>0 and TopSortID="&incase&" order by px_id asc"'选择分类
tys.Open menu,Conn,1,1
if tys.bof and tys.eof then 
	Response.Write("栏目正在建设中")
else
tys.movefirst
do while not tys.eof
b=b+1
if b=1 then no=" class=cur" else no=""
	Response.Write"<li"&no&">"&tys("SortName")&"</li>"&vbcrlf
tys.MoveNext
Loop
end if
tys.close
set tys=nothing %>            
		</ul>
	</div>
    
  <div class="in_al_imgs_wrap">
  <ul class="in_al_imgs">
<%Set rsb= Server.CreateObject("ADODB.Recordset")
menu="select * from [zych_Type] where isok=1 and ParentID<>0 and TopSortID="&incase&" order by px_id asc"'选择分类
rsb.Open menu,Conn,1,1
if rsb.bof and rsb.eof then 
  Response.Write("栏目正在建设中")
else
rsb.movefirst
do while not rsb.eof
c=c+1
if c=1 then no=" active" else no="" %>
<li>
<%'案例列表
set rss=server.CreateObject("adodb.recordset")
rss.open "select top 6 * from Content where isok=1 and SortID="&rsb("SortID")&" and addtime<#"&now()&"# order by IsTop desc,px_id desc,CID desc",conn,1,1
if rss.eof and rss.bof then
response.Write("<a>暂无记录...</a>")
end if
while not rss.eof
if rss("img")<>"" then img=rss("img") else img="../Include/images/nologo.jpg"%>
<a href="<%=zych_show_url(rss("SortID"),rss("CID"))%>"><div class="imgs"><img src="<%=img%>" alt="<%=rss("title")%>"><p><%=stvalue(DelHtml(rss("title")),10)%></p></div></a>
<%rss.movenext
wend
rss.close
set rss=nothing%>
</li>
<%rsb.MoveNext
Loop
end if
rsb.close
set rsb=nothing %>
      </ul>
  </div>
</div>
</div>
<div class="in_news">
<div class="in_title"><p><b>新闻资讯</b> NEWS</p><a href="<%=zych_listpath(sorttype,intxtid,"")%>" target="_blank" class="more">更多>></a></div>
<ul class="news_list" style="padding:5px">
<% set rs=server.createobject("adodb.recordset") 
exec="select top 7 * from Content where sortType=2 and isok=1 and TopSortID="&intxtid&" order by IsTop desc,px_id desc,Cid desc" 'top 8代表每栏目显示5条新闻 and SortType=3 
rs.open exec,conn,1,1 
if rs.eof and rs.bof then
response.Write("此分类暂无信息")
end if
while not rs.eof%>
<li><span class="fl">[<%=zychclass_name(rs("SortID"),rs("SortType"))%>]</span><a title="<%=rs("title")%>" href="<%=zych_show_url(rs("SortID"),rs("Cid"))%>"><%=stvalue(rs("title"),20)%></a>
<span class="date"><%=formatDate(rs("addtime"),1)%></span></li>
<%rs.movenext
wend
rs.close
set rs=nothing%>
</ul>
</div>
</div>
<script type="text/javascript" src="<%=zych_templatedir%>js/jquery.js"></script> 
<!--#include file="bottom.asp"-->
</body>
</html>
